package com.example.musictest.ui.adapter;

import android.content.Context;

import com.example.musictest.R;
import com.fw.mediasession.media.bean.MyVideo;
import com.zy.base.recycleview.BaseRecycleAdapter;
import com.zy.base.recycleview.BaseViewHolder;
import com.zy.untils.GlideUtils;

import java.util.List;


public class VideoAdapter extends BaseRecycleAdapter<MyVideo> {
    public VideoAdapter(Context mContext, List<MyVideo> mDatas, int mLayoutId) {
        super(mContext, mDatas, mLayoutId);
    }

    @Override
    protected void convert(Context mContext, BaseViewHolder holder, MyVideo myVideo) {
        holder.setText(R.id.music_title,myVideo.title);
        holder.setText(R.id.music_detail,myVideo.filePath);
        GlideUtils.getVideoImageView(holder.getView(R.id.music_image),myVideo.filePath);
    }
}
